Skip to content

Load feature flags from the dedicated feature flag resource endpoint - #48222

Closed
Yuan Qu (yuanqu72) wants to merge 27 commits into
Azure:appconfig-ff-endpoint-previewfrom
yuanqu72:yuan-provider-on-ffendpoint
Closed

Load feature flags from the dedicated feature flag resource endpoint#48222
Yuan Qu (yuanqu72) wants to merge 27 commits into
Azure:appconfig-ff-endpoint-previewfrom
yuanqu72:yuan-provider-on-ffendpoint

Conversation

@yuanqu72

@yuanqu72 Yuan Qu (yuanqu72) commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

Loads feature flags from the new dedicated Feature Flag resource endpoint (FeatureFlagClient/FeatureFlag) in azure-appconfiguration-provider, in addition to the existing key-value based feature flags.

  • When feature_flag_enabled=True, feature flags created via the feature flag resource endpoint are now loaded automatically alongside key-value based feature flags.
  • Both kinds are merged into the same feature_management.feature_flags list. When a resource-based feature flag and a key-value based feature flag share the same name, the resource-based one takes precedence.
  • No new load() options are required to opt in; existing feature_flag_selectors filter both kinds.
  • Bumped minimum dependency on azure-appconfiguration to >=1.10.0b1 for FeatureFlagClient/FeatureFlag support.

Dependency on #47620

⚠️ This PR is stacked on top of #47620 (AppConfig-FFEndpoint branch), which introduces the FeatureFlagClient APIs in azure-appconfiguration that this change depends on. Because of that, this PR targets AppConfig-FFEndpoint instead of main — the diff here is scoped only to sdk/appconfiguration/azure-appconfiguration-provider.

This PR should be reviewed/merged after (or together with) #47620, once that lands in main.

Changes

  • _azureappconfigurationprovider.py / aio/_azureappconfigurationproviderasync.py: load and merge feature flags from the feature flag resource endpoint
  • _client_manager.py / aio/_async_client_manager.py: new client manager support for feature flag resource clients
  • _constants.py, _request_tracing_context.py: new constants and request tracing updates for the feature flag resource path
  • New samples: samples/feature_flag_resource_sample.py, samples/async_feature_flag_resource_sample.py
  • New tests: tests/test_provider_feature_flag_resources.py, tests/test_async_provider_feature_flag_resources.py, tests/test_azureappconfigurationproviderbase.py, tests/test_configuration_client_manager.py
  • CHANGELOG.md, README.md, samples/README.md updated

Testing

  • Added unit tests and integ tests covering feature flag resource loading, merging/precedence behavior, and client manager creation (sync + async). All of them passed locally:
✅ All 360 tests passed (7m52s, 0 failures, 0 skips)
  • Wrote script locally to make sure FeatureManagement Library is able to consume the json loaded from provider library for the enhanced feature flag.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
10 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions github-actions Bot added the App Configuration Azure.ApplicationModel.Configuration label Jul 22, 2026
@mrm9084

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@mrm9084

Copy link
Copy Markdown
Member

/azp run appconfiguration

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@mrm9084

Copy link
Copy Markdown
Member

/azp run python - appconfiguration

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@yuanqu72 Yuan Qu (yuanqu72) changed the title Load feature flags from the dedicated feature flag resource endpoint … Load feature flags from the dedicated feature flag resource endpoint Jul 22, 2026
…g parsing

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@yuanqu72

Copy link
Copy Markdown
Member Author

/azp run python - appconfiguration

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@yuanqu72

Copy link
Copy Markdown
Member Author

Closing the pr. Moved it to the new pr: #48668

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

App Configuration Azure.ApplicationModel.Configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants